package longshu.data.common.mybatis;

import org.apache.ibatis.session.SqlSession;

import java.lang.reflect.InvocationHandler;
import java.lang.reflect.Method;

/**
 * DynamicSqlSession
 *
 * @author LongShu 2018/01/20
 */
public class DynamicSqlSessionProxy implements InvocationHandler {

    protected SqlSession getSqlSession() {
        // TODO
        return null;
    }

    @Override
    public Object invoke(Object proxy, Method method, Object[] args) throws Throwable {
        return method.invoke(getSqlSession(), args);
    }

}
